package choice;

public enum RtPlanAndRmTypeParseField {
    HOTEL_CODE(1, "HotelCode", true),
    RATE_PLAN_CODE(2, "RatePlanCode", true),
    ROOM_TYPE_CODE(3, "RoomTypeCode", true),
    DESCRIPTION(4, "Description", true),
    ROOM_TYPE_FEATURES(5, "RoomTypeFeatures", false),
    BED_TYPE(6, "BedType", false),
    SMOKING(7, "Smoking", true),
    NUM_BEDS(8, "NumBeds", true),
    MAX_OCC(9, "MaxOcc", true),
    TAX_INCL(10, "TaxIncl", false),
    EXTRA_BEDS(11, "ExtraBeds", false),
    RATE_TYPE(12, "RateType", false),
    MAX_ADVANCE_DAY(13, "MaxAdvanceDay", true);


    private int index;
    private String name;
    private boolean isAffectUpdate;

    private RtPlanAndRmTypeParseField(int index, String name, boolean affectUpdate) {
        this.index = index;
        this.name = name;
        isAffectUpdate = affectUpdate;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isAffectUpdate() {
        return isAffectUpdate;
    }

    public void setAffectUpdate(boolean affectUpdate) {
        isAffectUpdate = affectUpdate;
    }
}
